import { Entity, CreateDate, PrimaryUuid, WxLoginType, Openid, Ip, MemberId } from '@sker/core'
@Entity({
    name: 'wx_member_login_log'
})
export class WxMemberLoginLog {
    static title: string = `登录日志`;
    static resource: string = `wx_member_login_log`;

    @PrimaryUuid({
        comment: '编号',
        primaryKeyConstraintName: 'PK_WX_MEMBER_LOGIN_LOG'
    })
    id!: string;

    @Openid()
    openid!: string;

    @MemberId({ type: 'uuid', comment: '会员' })
    mid!: string;

    @Ip({
        type: 'varchar', length: 50, comment: 'ip'
    })
    ip!: string;

    @WxLoginType({ type: 'varchar', length: 50, comment: '类型' })
    type!: string;

    @CreateDate({
        comment: '创建日期'
    })
    create_date!: Date;
}